package cn.zqh.minio.mapper;

import cn.zqh.bean.bo.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zqh
 * @since 2023-02-21
 */
public interface CommentMapper extends BaseMapper<Comment> {

    /**
      * @Author: zqh
      * @Date:
      * @Description: 分页查询某种评论
    */
    List<Comment> getCommentsByPage(Integer style,String sorcid,Integer page,Integer size);

    /**
      * @Author: zqh
      * @Date:
      * @Description: 获取某个商品的数量
    */
    Integer getComCommentNumber(@RequestParam("CommodityId") String CommodityId);

}
